import { Action, ActionTree, Module } from "vuex";
import { IViewItem } from "@/types/IViewItem";
import { make } from "vuex-pathify";
import { ViewItems } from "@/views/ViewItems";

interface State {
  Drawer: boolean;
  ViewItems: IViewItem[];
}

export default class App implements Module<State, never> {
  public namespaced = true;

  state: State = {
    Drawer: false,
    ViewItems: ViewItems.GetInstance().Groups
  };

  mutations = make.mutations(this.state);

  actions: ActionTree<State, never> = {
    ...make.actions(this.state)
  };

  getters = {};
}
